package com.ruoyi.carService.mapper;

import com.ruoyi.system.api.domain.RescueMission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import com.ruoyi.system.api.domain.RescueMission;

/**
 * 救援任务Mapper接口
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Mapper
public interface RescueMissionMapper
{
    /**
     * 查询救援任务
     * 
     * @param orderDetailsId 救援任务主键
     * @return 救援任务
     */
    public RescueMission selectRescueMissionByOrderDetailsId(Long orderDetailsId);

    /**
     * 查询救援任务列表
     * 
     * @param rescueMission 救援任务
     * @return 救援任务集合
     */
    public List<RescueMission> selectRescueMissionList(RescueMission rescueMission);

    /**
     * 新增救援任务
     * 
     * @param rescueMission 救援任务
     * @return 结果
     */
    public int insertRescueMission(RescueMission rescueMission);

    /**
     * 修改救援任务
     * 
     * @param rescueMission 救援任务
     * @return 结果
     */
    public int updateRescueMission(RescueMission rescueMission);

    /**
     * 删除救援任务
     * 
     * @param orderDetailsId 救援任务主键
     * @return 结果
     */
    public int deleteRescueMissionByOrderDetailsId(Long orderDetailsId);

    /**
     * 批量删除救援任务
     * 
     * @param orderDetailsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRescueMissionByOrderDetailsIds(Long[] orderDetailsIds);
}
